package com.gm.englishdemo3.utils;

public class ServiceUrls {

    public static final String SP_MEMBER_PHONE="memberPhone";
    public static final String SP_MEMBER_PASSWORD="memberPassword";


//    private static String serviceUrl="http://192.168.247.117:8083/hotelService/";
    //Android虚拟机 AVD访问电脑的地址
    private static String serviceUrl="http://web.socem.plymouth.ac.uk/";
    private static String urlPostfix=".do";

    /**
     * 获取 AppReserveController 方法的路径
     *
     * @param method 方法
     * @return url
     */
    public static String getReserveMethodUrl(String method){
        return serviceUrl+"app/reserve/"+method+urlPostfix;
    }

    /**
     * 获取 AppMemberController 方法的路径
     *
     * @param method 方法名称
     * @return url
     */
    public static String getMemberMethodUrl(String method){
        return serviceUrl+"app/member/"+method+urlPostfix;
    }

    /**
     * 获取 AppMainPageController 方法的路径
     *
     * @return url
     */
    public static String getMainPageMethodUrl(){
        return serviceUrl+"COMP2000/api/students";
    }

}
